﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Microsoft.Xna.Framework;
using GameLibrary;

namespace Rescue_of_the_Dwarvenzombies.SceneObjects.GameObjects.Obstacles
{
    class Ground : Obstacle
    {
        /// <summary>
        /// Initializes a new instance of the <see cref="Ground"/> class.
        /// </summary>
        /// <param name="position">The position.</param>
        /// <param name="width">The width.</param>
        /// <param name="height">The height.</param>
        /// <param name="isHigh">if set to <c>true</c> [is high].</param>
        public Ground(Vector2 position, int width, int height, bool isHigh)
            : base(width, height, isHigh)
        {
            Position = position;
            SourceRectangle = new Rectangle(0, 0, Constant.GROUND_WIDTH, Constant.GROUND_HEIGHT);
            TextureName = Constant.GROUND_TEXTURE_NAME;
            RectangleHeight = height;
            RectangleWidth = width;
            SourceRectangle = new Rectangle(0, 0, width, height);
            TintColor = Color.White;
        }
    }
}
